package com.didispace.web;

import com.didispace.Blog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BlogController {

    @Autowired
    private Blog blog;

    @RequestMapping("/blog")
    public String index() {
        String value = blog.getValue();
        Integer number = blog.getNumber();
        Long bignumber = blog.getBignumber();
        Integer test1 = blog.getTest1();
        Integer test2 = blog.getTest2();

        return value + "</br> " + number + "</br> " + bignumber + "</br> " + test1 + "</br> " + test2;
    }
}
